package handler

import (
	"doc-reg/models"

	"github.com/gin-gonic/gin"
)

func PatientList(c *gin.Context) {
	var patient []models.Patient
	models.DB.Debug().Find(&patient)
	c.JSON(200, gin.H{
		"code": 200,
		"msg":  "列表成功",
		"data": patient,
	})
	return
}
